﻿#ifndef POSTCOMMAND_CMDLINECHARTSIDEBARCURVENAMECHECKSTATECHANGED_H
#define POSTCOMMAND_CMDLINECHARTSIDEBARCURVENAMECHECKSTATECHANGED_H

#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdLineChartSidebarCurveNameCheckStateChanged : public CommandManager::CommandBase
    {
        Q_OBJECT

    public:
        CmdLineChartSidebarCurveNameCheckStateChanged();
        ~CmdLineChartSidebarCurveNameCheckStateChanged();

        bool execute() override;
        void undo() override;
        void redo() override;

        void setLineChartSidebarCurveNameCheckStateChanged(int mainWindowId, int index, int checkStatus);

    private:
        int m_mainWindowId;
        int m_index;
        int m_checkStatus;
    };
} // namespace PostCommand

#endif
